centos7不能上网,重启网卡报错怎么办
时间 :
2020-09-29,16:38:10
编辑 ::ADMIN
问题:
VMWare虚拟机安装了CentOS7 ,突然发现连接不上,进入系统使用ifconfig命令查看网络设备,发现无外网网卡。
(推荐教程:centos教程)
如下:
[root@localhost ~]# ifconfig lo: flags=73<up> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 12 bytes 1068 (1.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 12 bytes 1068 (1.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbr0: flags=4099<up> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:f6:af:41 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</up></host></up>